package com.ceair.flight.refund.location.dt.enums;

public enum MistakeAuditStatusEnum {

	INIT("INIT","初始"),
	INVALID("INVALID","无效"),
	FREEZE("FREEZE","冻结"),
	FINISH("FINISH","已完成"),
	REFUSED("REFUSED","已拒绝"),
	WAIT_FOR_AUDIT("AUDITING","等待审核")
	;

	/** 简码 */
    private final String code;

    /** 描述 */
    private final String description;

    /**
     * 私有构造方法
     *
     * @param code          简码
     * @param description   描述
     */
    private MistakeAuditStatusEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    /**
     * @return Returns the code.
     */
    public String getCode() {
        return code;
    }

    /**
     * @return Returns the description.
     */
    public String getDescription() {
        return description;
    }

    /**
     * 通过枚举<code>code</code>获得枚举。
     *
     * @param code  简码
     * @return      枚举
     */
    public static com.ceair.flight.refund.location.dt.enums.MistakeAuditStatusEnum getByCode(String code) {
        for (com.ceair.flight.refund.location.dt.enums.MistakeAuditStatusEnum status : values()) {
            if (status.getCode().equalsIgnoreCase(code)) {
                return status;
            }
        }
        return null;
    }
    
}
